package com.bye.xiaomi_mall.mapper;

import java.util.List;
import com.bye.xiaomi_mall.domain.TdOrder;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-15
 */
public interface TdOrderMapper 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public TdOrder selectTdOrderById(Long id);

    /**
     * 查询订单列表
     * 
     * @param tdOrder 订单
     * @return 订单集合
     */
    public List<TdOrder> selectTdOrderList(TdOrder tdOrder);

    /**
     * 新增订单
     * 
     * @param tdOrder 订单
     * @return 结果
     */
    public int insertTdOrder(TdOrder tdOrder);

    /**
     * 修改订单
     * 
     * @param tdOrder 订单
     * @return 结果
     */
    public int updateTdOrder(TdOrder tdOrder);

    /**
     * 删除订单
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteTdOrderById(Long id);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTdOrderByIds(Long[] ids);

    int updateTdOrderStatus(String orderCode);

    TdOrder selectTdOrderByOrderCode(String orderCode);

    List<TdOrder> selectOrderInfoByUserId(String userID);
}
